<?php

/**
 * Subclass for performing query and update operations on the 'rol_credencial' table.
 *
 *
 *
 * @package lib.model
 */
class RolCredencialPeer extends BaseRolCredencialPeer
{
  static public function getByRolId($id){
    $c = new Criteria();
    $c->add(self::ROL_ID,$id);
    $c->addJoin(self::CREDENCIAL_ID,CredencialPeer::ID);
    $c->add(CredencialPeer::ACTIVO,1);
    return self::doSelect($c);
  }

}

